home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 1.6 KB | 71 lines | [TEXT/CWIE] |
- // DModalTextData -- data class for Everything
-
- #pragma once
-
- #include "AMDataDef.h"
-
- class LFileStream;
-
-
- const long idSmall2 = 'Sma2';
- const long idLarge2 = 'Lar2';
- const long idX12346 = 'X146';
- const long idX12345e7 = 'X127';
- const long idPassword2 = 'Pas2';
- const long idDate2 = 'Dat2';
- const long idTime2 = 'Tim2';
- const long idStyled2 = 'Sty2';
-
-
- //----------
- class DModalTextData : public AMDataDef {
- public:
- DModalTextData ();
- virtual ~DModalTextData ();
-
- public:
- void CopyFrom (DModalTextData* inOther);
- void ReadFromFile (LFileStream* inFile);
- void WriteToFile (LFileStream* inFile);
-
- public: // accessors
- StringPtr GetSmall2 (Str255 outStr = nil) const;
- void SetSmall2 (ConstStringPtr inValue);
- void SetSmall2 (CharsHandle inValue);
-
- StringPtr GetLarge2 (Str255 outStr = nil) const;
- void SetLarge2 (ConstStringPtr inValue);
- void SetLarge2 (CharsHandle inValue);
-
- SInt32 GetX12346 () const;
- void SetX12346 (SInt32 inValue);
-
- double GetX12345e7 () const;
- void SetX12345e7 (double inValue);
-
- StringPtr GetPassword2 (Str255 outStr = nil) const;
- void SetPassword2 (ConstStringPtr inValue);
- void SetPassword2 (CharsHandle inValue);
-
- LongDateRec GetDate2 () const;
- void SetDate2 (LongDateRec inValue);
-
- LongDateRec GetTime2 () const;
- void SetTime2 (LongDateRec inValue);
-
- StringPtr GetStyled2 (Str255 outStr = nil) const;
- void SetStyled2 (ConstStringPtr inValue);
- void SetStyled2 (CharsHandle inValue);
-
-
- protected:
- Str255 mSmall2;
- Str255 mLarge2;
- SInt32 mX12346;
- double mX12345e7;
- Str255 mPassword2;
- LongDateRec mDate2;
- LongDateRec mTime2;
- Str255 mStyled2;
- };
-